package com.pac.weixin.dao.impl;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.pac.weixin.bean.WxPopularizeBean;
import com.pac.weixin.dao.WxPopularizeDao;

/**
 * 微信推广dao实现
 * 
 * @author lujun.chen
 * @version [版本号, 2015年3月5日]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
@Repository(value = "wxPopularizeDao")
public class WxPopularizeDaoImpl implements WxPopularizeDao {

	@Autowired
	private SqlSessionTemplate sqlSessionTemplate;

	@Override
	public String addPopularize(WxPopularizeBean wxPopularizeBean) {
		sqlSessionTemplate.insert("addPopularize", wxPopularizeBean);
		return wxPopularizeBean.getId();
	}

}
